#include "PMWindow.h"

namespace Proton 
{
	namespace Managers
	{
		PMWindow::PMWindow(const TCHAR *_windowName, PMWindowClass* _wc)
			: PMAbstractWindow()
		{
			wc = _wc;
			windowName = _windowName;
			className = _className;
			hInstance = ::GetModuleHandleA(NULL);

		}

		LRESULT CALLBACK PMWindow::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
		{
			switch(message)
			{
			case WM_DESTROY:
				{
					PostQuitMessage(0);
					return 0;
				} break;
			}

			return DefWindowProc(hWnd, message, wParam, lParam);
		}
	}
}